//元素和组件的映射表
import ElementType from './ElementType';
import ActivitiProperties from "@/components/activit/properties";
const ElementCompantMap = {};
//执行流程属性组件
ElementCompantMap[ElementType.process] =ActivitiProperties.ProcessProperties;

ElementCompantMap[ElementType.startEvent] = ActivitiProperties.StartEventProperties;
ElementCompantMap[ElementType.endEvent] = ActivitiProperties.EndEventProperties;
ElementCompantMap[ElementType.throwEvent] =ActivitiProperties.IntermediateThrowEventProperties;
ElementCompantMap[ElementType.exclusiveGateway] = ActivitiProperties.ExclusiveGatewayProperties;
ElementCompantMap[ElementType.inclusiveGateway] = ActivitiProperties.InclusiveGatewayProperties;
ElementCompantMap[ElementType.parallelGateway] = 'ParallelGatewayProps';
ElementCompantMap[ElementType.sequenceFlow] = ActivitiProperties.SequenceFlowProperties;

ElementCompantMap[ElementType.userTask] = ActivitiProperties.UserTaskProperties;
ElementCompantMap[ElementType.callActivity] = ActivitiProperties.CallActivityProperties;

// 只读设计器
// ElementCompantMap[ElementType.startEventReadonly] = 'StartEventPropsReadonly';
// ElementCompantMap[ElementType.endEventReadonly] = 'EndEventPropsReadonly';
// ElementCompantMap[ElementType.throwEventReadonly] = 'IntermediateThrowEventPropsReadonly';
// ElementCompantMap[ElementType.exclusiveGatewayReadonly] = 'ExclusiveGatewayPropsReadonly';
// ElementCompantMap[ElementType.inclusiveGatewayReadonly] = 'InclusiveGatewayPropsReadonly';
// ElementCompantMap[ElementType.parallelGatewayReadonly] = 'ParallelGatewayPropsReadonly';
// ElementCompantMap[ElementType.sequenceFlowReadonly] = 'SequenceFlowPropsReadonly';
//
// ElementCompantMap[ElementType.userTaskReadonly] = 'UserTaskPropsReadonly';
// ElementCompantMap[ElementType.callActivityReadonly] = 'CallActivityPropsReadonly';
export default ElementCompantMap;
